package com.zhiche.lisa.bms.service.invoice;

import com.baomidou.mybatisplus.service.IService;
import com.zhiche.lisa.bms.dao.model.bill.BillIo;
import com.zhiche.lisa.bms.dao.model.invoice.InvoiceApplyBill;

import java.util.List;

/**
 * <p>
 * 申请开票明细-账单 服务类
 * </p>
 *
 * @author liuanshun
 * @since 2018-09-27
 */
public interface InvoiceApplyBillService extends IService<InvoiceApplyBill> {
    /**
     * 根据头单id获取申请账单开票明细
     *
     * @param headerId
     * @return
     */
    List<BillIo> selectInvoiceApplyBillListByHeaderId(Long headerId);

    /**
     * 批量新增申请账单开票详明
     *
     * @param invoiceApplyBills 账单批量信息
     * @param headerId          对应申请帐单id
     * @return
     */
    void insertInvoiceApplyBill(List<InvoiceApplyBill> invoiceApplyBills, Long headerId);

    /**
     * 删除
     *
     * @param headId
     */
    void deleteInvoiceApplyBillByHeadId(Long headId);
}
